package com.pp.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author 张子艺
 * @since 2019-04-02
 */
@ApiModel(value="GovGoodsInfo对象", description="商品表")
public class GovGoodsInfo extends Model<GovGoodsInfo> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "商品名称")
    @TableField("good_name")
    private String goodName;

    @ApiModelProperty(value = "商品首图")
    @TableField("index_image")
    private String indexImage;

    @ApiModelProperty(value = "商品简介")
    @TableField("good_info")
    private String goodInfo;

    @ApiModelProperty(value = "注意事项")
    @TableField("attention")
    private String attention;

    @ApiModelProperty(value = "热量")
    @TableField("heat")
    private String heat;

    @ApiModelProperty(value = "蛋白质")
    @TableField("protein")
    private String protein;

    @ApiModelProperty(value = "脂肪")
    @TableField("fat")
    private String fat;

    @ApiModelProperty(value = "碳水化合物")
    @TableField("carbohydrate")
    private String carbohydrate;

    @ApiModelProperty(value = "糖")
    @TableField("sugar")
    private String sugar;

    @ApiModelProperty(value = "钙")
    @TableField("calcium")
    private String calcium;

    @ApiModelProperty(value = "中英文 1 中 2 英文")
    @TableField("lang")
    private Integer lang;

    @ApiModelProperty(value = "商品类型")
    @TableField("good_type")
    private Long goodType;

    @ApiModelProperty(value = "参数 多图片 轮播 文章图ID")
    @TableField(exist = false)
    private List<Long> ids;

    public List<Long> getIds() {
        return ids;
    }

    public Long getGoodType() {
        return goodType;
    }

    public void setGoodType(Long goodType) {
        this.goodType = goodType;
    }

    public void setIds(List<Long> ids) {
        this.ids = ids;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }
    public String getIndexImage() {
        return indexImage;
    }

    public void setIndexImage(String indexImage) {
        this.indexImage = indexImage;
    }
    public String getGoodInfo() {
        return goodInfo;
    }

    public void setGoodInfo(String goodInfo) {
        this.goodInfo = goodInfo;
    }
    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention;
    }
    public String getHeat() {
        return heat;
    }

    public void setHeat(String heat) {
        this.heat = heat;
    }
    public String getProtein() {
        return protein;
    }

    public void setProtein(String protein) {
        this.protein = protein;
    }
    public String getFat() {
        return fat;
    }

    public void setFat(String fat) {
        this.fat = fat;
    }
    public String getCarbohydrate() {
        return carbohydrate;
    }

    public void setCarbohydrate(String carbohydrate) {
        this.carbohydrate = carbohydrate;
    }
    public String getSugar() {
        return sugar;
    }

    public void setSugar(String sugar) {
        this.sugar = sugar;
    }
    public String getCalcium() {
        return calcium;
    }

    public void setCalcium(String calcium) {
        this.calcium = calcium;
    }
    public Integer getLang() {
        return lang;
    }

    public void setLang(Integer lang) {
        this.lang = lang;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GovGoodsInfo{" +
        "id=" + id +
        ", goodName=" + goodName +
        ", indexImage=" + indexImage +
        ", goodInfo=" + goodInfo +
        ", attention=" + attention +
        ", heat=" + heat +
        ", protein=" + protein +
        ", fat=" + fat +
        ", carbohydrate=" + carbohydrate +
        ", sugar=" + sugar +
        ", calcium=" + calcium +
        ", lang=" + lang +
        "}";
    }
}
